import { defineStore } from 'pinia';
import { visualizingCustomerInterface } from './interface';
export const useVisualizingCustomerStore = defineStore('visualizingCustomer', {
  state: (): visualizingCustomerInterface => ({
    customer_id:'',
    current_equip_num:{},
    equip_num_list:[],
    envDataList:[],
  }),
  actions: {
    updateCustomer_id(data:string) {
      this.customer_id = data;
    },
    updateCurrent_equip_num(data:object) {
      this.current_equip_num = data;
    },
    updateEquip_num_list(data:string[]) {
      this.equip_num_list = data;
    },
    updateEnvDataList(data:object[]) {
      this.envDataList = data;
    },
  },
  persist:{
    enabled: true,
  }
})